package icu.d4peng.cloud.user.enums;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2021-12-30 21:05
 * @description Status:用户状态
 */
public enum Status implements IEnum<Integer> {
    NORMAL(1, "正常"),
    DISABLE(2, "禁用"),
    ;

    private final Integer value;
    private final String desc;

    Status(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
